package com.jintoufs.dao.coupon;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.coupon.Coupon;

import java.util.List;
import java.util.Map;

public interface CouponMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    Coupon selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

    List<Map<String,Object>> queryByParams(Map<String, Object> params);

    List<Coupon> getByFilter(QueryFilters filters);

    //优惠券明细
    Coupon queryByPrimaryKey(Integer id);

    List<Map<String,Object>> queryByPrimaryKeys(Map<String,Object> param);

}